package com.pinionoffice.oa.info

import com.pinionoffice.Photo
import com.pinionoffice.User

class News {

    User creator

    Section section

    Photo subjectIcon
    String subject

    Date dateCreated
    Date lastUpdated
    Date expDate        // the end of this news to be display

    long repleyCount = 0
    long viewCount = 0

    NewsStatus status = NewsStatus.DRAFT

    Boolean isDeskImage = false
    Boolean isNotice = false

    long sn

    static belongsTo = [section: Section]

    static constraints = {
        subjectIcon: nullable: true
        subject size: 0..65535
    }
}
